package com.jiunuan.live.api.controller;

import com.jiunuan.live.api.service.ImService;
import com.jiunuan.live.common.interfaces.vo.WebResponseVO;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: JiuNuan
 * @CreateTime: 2024-08-26 16:27
 * @Description: im 服务端控制器
 */

@RestController
@RequestMapping("/im")
@Tag(name = "im-im相关接口")
public class ImController {

    @Resource
    private ImService imService;
    @Operation(summary = "getImConfig-获取im信息")
    @PostMapping("/getImConfig")
    public WebResponseVO getImConfig() {
        return WebResponseVO.success(imService.getImConfig());
    }
}